<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <input id="input" type="text" id="input"  onchange="huxubo()">
</body>
<script>
    function huxubo(){
        var input=document.getElementById("input").value;
        console.log(input);
    }
</script>
</html>